<?php
/**
 * Description of room_type
 *
 * @author cristian.daraban
 */
class RoomType {
    private $response;
    
    public function RoomType($resp)
    {
        $this->response = $resp;
    }
    public function GetRoomTypeId()
    {
        return $this->response->{"roomTypeId"};
    }
    public function GetRoomCode()
    {
        return $this->response->{"roomCode"};
    }
    public function GetDescription()
    {
        return $this->response->{"description"};
    }
    public function GetDescriptionLong()
    {
        return $this->response->{"descriptionLong"};
    }
    public function GetRoomAmenities()
    {
        $size = $this->response->{"roomAmenities"}->{"@size"};
        $roomAmenities = array();
        for($i=0; $i< $size; $i++)
        {
            $roomAmenities[$i] = new RoomAmenity($this->response->{"roomAmenities"}->{"RoomAmenity"});
        }
        return $roomAmenities;
    }
}

?>
